package com.ruoyi.web.controller.doctor;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.doctor.service.DoctorPatientDrugService;
import com.ruoyi.drug.domain.DrugsDurg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/doctor/patientdrug")
public class DoctorPatientDrugController {
    @Autowired
    private DoctorPatientDrugService doctorPatientDrugService;

    @GetMapping("/all")
    public AjaxResult getAllDrug(DrugsDurg drugsDurg){
        //查询并返回数据
        return AjaxResult.success(doctorPatientDrugService.selectAllDrugs(drugsDurg));
    }
}
